package com.jwiki.app.jkeeper.controller.form;

import com.jwiki.app.jkeeper.common.data.Context;
import com.jwiki.app.jkeeper.controller.BaseController;

public class BaseForm<T> {

    private T id;

    private String name;

    private Long userId;

    private String userName;

    public BaseForm() {
        Context context = BaseController.getContext();
        this.userId = context.getUserId();
        this.userName = context.getUserName();
    }

    public T getId() {
        return id;
    }

    public void setId(T id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

}
